import Layout from '@/layout';

const assetReceiveRoute = [
  {
    path: '/asset-receive',
    redirect: '/asset-receive/index',
    name: 'asset-receive',
    meta: { title: '我的资产' },
    component: Layout,
    children: [
      {
        path: '',
        name: '',
        component: () => import('@/views/asset-receive'),
        meta: { title: '' },
        props: route => ({
          $title: route.query.title,
          $type: route.query.type
        })
      },
      {
        path: '/asset-receive-sheet',
        name: 'asset-receive-sheet',
        component: () => import('@/views/asset-receive/asset-receive-sheet'),
        meta: { title: '' },
        props: route => ({
          $title: route.query.title,
          $type: route.query.type
        })
      }
    ]
  }
];

export default assetReceiveRoute;
